#ifndef SHOGICOMMAND_H_INCLUDED
#define SHOGICOMMAND_H_INCLUDED


#include "shogidef.h"
#include "shogierror.h"

class ShogiCommand
{
public:
	// Ctor, Dtor and CCtor
	ShogiCommand() {};
	ShogiCommand(int p );

	// Getters & Setters
	Player	getPlayer()	 const			{ return m_player;}
	QString getCommand() const			{ return m_command;}
	QString getValue() const			{ return m_value;}
	QString getCommandAndValue() const; // remove?
	void	setCommandAndValue(QString command, QString value); // used
	void    setCommand(QString command);			// used

	// QByteArray seems more adapted to ascii handling in send/recv
	QByteArray	getFullCommand() const;				// used
	bool parseCommand(QByteArray* pCommand); // removes the read command from the array, but the array can still contain more data
	
	

	
	ShogiError m_error;

private:
	int m_player;
	QString m_command;
	QString m_value;
	

};

#endif // SHOGICOMMAND_H_INCLUDED

